<?php
namespace app\company\controller;
use think\Controller;
use think\Db;
use think\Session;
class Company extends Controller
{
    //公司首页
    public function index()
    {
        //取登录的时候存的id
        $company_id = Session::get('company_id');
        //通过id查询公司的信息
        $res = Db::name('company')
        ->where('company_id',$company_id)
        ->where('company_status',0)
        ->select();
        //  dump($company_id);
        //  exit;
        //把值传到前端页面
        $this->assign("res",$res);
        return $this->fetch();
    }
    
}
